package com.atguigu.jdk;

import java.util.Calendar;

/**
 * @author gcq
 * @Create 2020-09-30
 */
public class Factory {
    public static void main(String[] args) {
        //  getInstance 是 Calendar的静态方法
        Calendar instance = Calendar.getInstance();
        System.out.println("年:" + instance.get(Calendar.YEAR));
    }
}